//
//  MineWalletCell.m
//  YongChuanTradingArea
//
//  Created by Vivian on 2017/9/11.
//  Copyright © 2017年 李冰. All rights reserved.
//

#import "MineWalletCell.h"

@interface MineWalletCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *amtLabel;

@end

@implementation MineWalletCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(MineWalletModelUserRewardList *)model{
    _model = model;
    self.titleLabel.text = _model.Type;
    self.timeLabel.text = [NSDate timeStringWithTimestamp:[_model.RewardTime getTimestamp] formatterString:@"yyyy-MM-dd"];;
    self.amtLabel.text = [NSString stringWithFormat:@"+￥%.2f",_model.RewardMoney?[_model.RewardMoney floatValue]:0];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
